﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class 获取版本号 : MonoBehaviour
{
    public bool 追加 = true;

    public Text 文本;

    void Start()
    {
        if (文本 == null)
        {
            if(!TryGetComponent<Text>(out 文本))
            {
                return;
            }
        }

        if (追加)
        {
            文本.text += Application.version;
        }
        else
        {
            文本.text = Application.version;
        }
    }
}
